package com.dyw.blog.controller;

import com.dyw.blog.dao.entity.SysUser;
import com.dyw.blog.utils.UserThreadLocal;
import com.dyw.blog.vo.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Devil
 * @create 2022-02-11 17:34
 */
@RestController
@RequestMapping("test")
public class testController {
    @RequestMapping
    public Result test(){
        SysUser sysUser = UserThreadLocal.get();
        System.out.println(sysUser);
        return Result.success(null);
    }
}
